F# fails with “Error 4 This expression was expected to have type int but here has type int -> int”?

In addition to what @Rangoric pointed out, the outer brackets have to go as well otherwise currying won't work: d.

That is what I was missing! Thanks – n8CodeGuru Apr 19 at 20:31.

Yikes, here are a few unsolicited tips (@BrokenGlass answered the question itself correctly). First, you can assign all those mutables in one line: let mutable d, c, xi, yi = 0, 1, 2, 2 Second, go easy on the parentheses: xi.

Try: d int and not an int by itself. Wrapping it in parentheses causes the abs to be executed before gcd looks at it. This causes gcd to see the result of abs instead of abs itself.

I tried that before I posted and it didn't work :( I came to the conclusion to that it was returning a function and not a value. I have tried the following: d.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions